/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfophone.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 联系方式Entity
 * @author zms
 * @version 2018-05-14
 */
public class CampusinfoPhone extends DataEntity<CampusinfoPhone> {
	
	private static final long serialVersionUID = 1L;
	private String phone;		// phone
	private String weixin;		// weixin
	
	public CampusinfoPhone() {
		super();
	}

	public CampusinfoPhone(String id){
		super(id);
	}

	@Length(min=0, max=2048, message="phone长度必须介于 0 和 2048 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=64, message="weixin长度必须介于 0 和 64 之间")
	public String getWeixin() {
		return weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}
	
}